#
# Cookbook Name:: om
# Recipe:: install
#
# Copyright 2013, IBM
#
# All rights reserved - Do Not Redistribute
#


wasuser = node[:was][:user]
wasgroup = node[:was][:group]
wasuserpw = node[:was][:userpw]
cuser = node[:chef][:user]
cgroup = node[:chef][:group]
deployment = node[:deployment]


startinstr "Create was user and was group"

group "#{node[:was][:group]}" do
  action :create
end

user "#{node[:was][:user]}" do
  gid "#{node[:was][:group]}"
  action :create
end

#bash "Add user to  /opt/eregldap/uar/configure/protectedid.dat" do
##  user "root"
#  code <<-EOH
#  	echo "wasuser" >> /opt/eregldap/uar/configure/protectedid.dat
#  EOH
#	
#end

stopinstr "Create was user and was group"



